<script language="JScript" runat="Server">
Array.prototype.get = function(i)
{
	return this[i];
}
function getjson(str)
{
	try
	{
		eval("var jsonStr = (" + str + ")");
	}
	catch(ex)
	{
		var jsonStr = null;
	}
	return jsonStr;
}
</script>
<!-- #include file="conn.asp" -->
<%
Session.CodePage=65001
Response.Charset="utf-8"
userJson=session("userPhoneInfo")
if userJson <> "" then
	Set json = getjson(userJson)
	for i=0 to json.length-1
		if json.get(i).state = 1 then
			set rs= server.createobject("adodb.recordset")
			sqlstr = "select * from userInfo where username='"&json.get(i).email&"'"
			rs.open sqlstr,conn,1,1
			if rs.RecordCount <> 0 then
				Do while not rs.eof or rs.bof
					session("login")="ok"
					session("type")=rs("id")
					session("admin")=rs("userName")
					session("p")=rs("p")
					session("v1")=rs("v1")
					session("userPhoneInfo")="[]"
					rs.movenext
				loop
			end if
		else
			session("login")="noOk"
		end if
	Next
else
	'session("login")="noOk"
end if
%>